#include "window.h"
#include "plan.h"
#include "arbre.h"
#include "teapot.h"
#include "text.h"
#include "soucoupe.h"
#include "maLumiere.h"
#include "neon.h"


int main(int argc, char**argv)
{
  Window *win = WindowCreator::createWindow("toto",0,0,250,250,&argc,argv);
    
  //Lumiere du neon
   Lumiere lumNeon;
   lumNeon.setDiffuse(1.0,0.0,0.0,1.0);
   lumNeon.setAmbient(1.0,1.0,1.0,1.0);
   lumNeon.setCutoff(180.0);
   lumNeon.setExponent(100);

  //Materiau du neon (transparent)
  Material mNeon;
  mNeon.setDiffuse(1.0,0.0,0.0,0.2);
  mNeon.setEmissive(1.0,0.0,0.0,0.2);
  mNeon.setShininess(0);

  //le neon
  Neon neon;
  neon.setMaterial(&mNeon);
  neon.setLumiere(&lumNeon);
  neon.setPosition(-1.5,0.0,0.0);



   //les objets
   Plan plan(10.0, 10.0, "tex_blanc.png");



  Scene scene;
  scene.addObjet(&plan);
  scene.addObjet(&neon);
  win->setScene(&scene);
  win->mainLoop();
  return 0;
}
